home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010921-20020314 / 000131_fdc@watsun.cc.columbia.edu_Thu Nov 8 10:01:02 EST 2001.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  52 lines

  1. Article: 12949 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!watsun.cc.columbia.edu!fdc
  3. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.unix.sco.misc,comp.protocols.kermit.misc
  5. Subject: Re: OSR5 <sys/termio.h> (OSR5 modem signals)
  6. Date: 8 Nov 2001 14:50:28 GMT
  7. Organization: Columbia University
  8. Lines: 35
  9. Message-ID: <9se63k$kqo$1@newsmaster.cc.columbia.edu>
  10. References: <9s775v$ip0$1@newsmaster.cc.columbia.edu> <9s9344$4n$1@newsmaster.cc.columbia.edu> <9sc7ku$81i$1@newsmaster.cc.columbia.edu> <3bea05eb$0$79559$8eec23a@newsreader.tycho.net>
  11. NNTP-Posting-Host: watsun.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1005231028 21336 128.59.39.2 (8 Nov 2001 14:50:28 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 8 Nov 2001 14:50:28 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.unix.sco.misc:140030 comp.protocols.kermit.misc:12949
  16.  
  17. In article <3bea05eb$0$79559$8eec23a@newsreader.tycho.net>,
  18. John DuBois <spcecdt@deeptht.armory.com> wrote:
  19. : In article <9sc7ku$81i$1@newsmaster.cc.columbia.edu>,
  20. : Frank da Cruz <fdc@watsun.cc.columbia.edu> wrote:
  21. : >If anybody has OSR5.0.5 code that drops DTR and then turns it back on
  22. : >that works (e.g. brings DTR back up after the pause and if RTS also went
  23. : >down, it comes back up too), I'd sure like to see it.
  24. : I think you'll just need to close the device, open it, & re-initialize it.
  25. As noted in an earlier posting, when I tried that on my 505 system:
  26.  
  27.   tcgetattr(ttyfd, &ttcur);
  28.   close(ttyfd);
  29.   (pause)
  30.   ttyfd = open(name,O_RDWR|O_NONBLOCK);
  31.   tcsetattr(ttyfd,TCSADRAIN,&ttcur);
  32.  
  33. DTR and RTS drop for the desired interval and they both come on again.
  34. However, any write() to the reopened device gets error 11, "Resource
  35. temporarily unavailable".  Did I miss a step?  Or is this a difference
  36. between 5.0.6a and earlier OSR5s?
  37.  
  38. : >However, TIOCMGET still seems problematic -- it reported that
  39. : >all modem signals (DTR, DSR, RTS, CTS, RI) were off when connected to a
  40. : >modem with a fully populated modem cable.  Can anybody confirm or deny this?
  41. : Well, I can tell you than on a stock 5.0.6a system and using a standard (sio)
  42. : port, this code:
  43. :     #define _SVID3
  44. :
  45. Aha, maybe that was the missing piece.  Thanks.
  46.  
  47. - Frank
  48.